//
//  FPLoanModel.h
//  FinanceProject
//
//  Created by 陈显摆 on 2025/2/7.
//

#import <JSONModel/JSONModel.h>

NS_ASSUME_NONNULL_BEGIN

@interface FPLoanModel : JSONModel

@property (nonatomic , strong) NSString *amount; //!< 借款金额
@property (nonatomic , strong) NSString *rate; //!< 借款利率
@property (nonatomic , strong) NSString *limit; //!< 借款期限 期数
@property (nonatomic , strong) NSString *repayWay; //!< 还款方式 目前只有 等额本息-分期还款
@property (nonatomic , strong) NSString *phone; //!< 手机号

@property (nonatomic , strong) NSString *residentialDetailsAddress; //!< 用户居住详情地址 保存在user info
@property (nonatomic , strong) NSString *userName; //!< 借款人
@property (nonatomic , strong) NSString *idNumber; //!< 借款人身份证号码
@property (nonatomic , strong) NSString *date; //!< 借款日期 服务器时间接口
@property (nonatomic , strong) NSString *repayDay; //!< 还款日 固定10号目前

@property (nonatomic , strong) NSString *bankCardUserName; //!< 银行卡的用户名
@property (nonatomic , strong) NSString *bankCardNumber; //!< 银行卡号
@property (nonatomic , strong) NSString *bankCardInfo; //!< 开户行
@property (nonatomic , strong) NSString *loanPurpose; //!< 借款用途
@property (nonatomic , strong) NSString *capitalLetters; //!< 金额 大写数字

/**
 *  提交借款申请之前 点下一步时 保存合同需要的信息
 */
+ (void)saveLoanContractInfoWithParam:(FPLoanModel *)param timeStamp:(long long)timeStamp success:(void (^)(NSInteger code , NSString *message))success failure:(void (^)(NSError *error))failure;

/**
 *  提交借款申请之前 点下一步时 合同需要的信息 查询接口
 */
+ (void)checkLoanContractInfoWithParam:(NSString *)paramString success:(void (^)(NSInteger code , NSString *message))success failure:(void (^)(NSError *error))failure;

/**
 *  提交借款申请
 */
+ (void)submitLoanWithParam:(NSDictionary *)param success:(void (^)(NSInteger code , NSString *message))success failure:(void (^)(NSError *error))failure;

@end

NS_ASSUME_NONNULL_END
